#include <stdio.h>
int main()
{
	char str1[10] = { 0 };
	char str2[10]="abcAB\0abc";
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		if (str2[i] == '\0')
		{
			str1[i] = str2[i];
			break;
		}
		str1[i] = str2[i];
	}
	for (i = 0; i < 10; i++)
		printf("%c ", str1[i]);
	return 0;
}